<template>
  <div v-if="!isDialog" class="dialog">
    <slot />
  </div>
</template>

<script>
export default {
  name: 'ToDialog',
  props: {
    isDialog: {
      default: false
    }
  }
}
</script>

<style lang="scss" scoped>
.dialog {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.15);
}
</style>
